# -*- coding: utf-8 -*-
import os, sys

class Sahel:
    
    def __init__(self, population, birthRate, deathRate, timeStep, timeRange):
        """Initialise public attributes.

        population
        birthRate
        deathRate
        timeStep
        timeRange

        """
        self.population = [population]
        self.birthRate  = birthRate
        self.deathRate  = deathRate
        self.timeStep   = timeStep
        self.timeRange  = timeRange

        self.lastPop    = 1  # initial with any (countable) value,
                             # only used in getPop (see following!)
                
    def getPop(self):
        """Return last number of list 'population'."""
        self.lastPop=self.population[len(self.population)-1]
        return self.lastPop
